import request from '@/utils/request'

// 查询代理证书列表
export function listProxyCrt(query) {
  return request({
    url: '/lbconfig/proxyCrt/list',
    method: 'get',
    params: query
  })
}

// 查询代理证书详细
export function getProxyCrt(id) {
  return request({
    url: '/lbconfig/proxyCrt/' + id,
    method: 'get'
  })
}

// 新增代理证书
export function addProxyCrt(data) {
  return request({
    url: '/lbconfig/proxyCrt',
    method: 'post',
    data: data
  })
}

// 修改代理证书
export function updateProxyCrt(data) {
  return request({
    url: '/lbconfig/proxyCrt',
    method: 'put',
    data: data
  })
}

// 删除代理证书
export function delProxyCrt(id) {
  return request({
    url: '/lbconfig/proxyCrt/' + id,
    method: 'delete'
  })
}
